page.tsx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. "use client";
  2. import {fetchApi, fetchFile} from "@/app/_modules/func";
  3. import {DeleteOutlined, ExclamationCircleFilled, PlusOutlined, ReloadOutlined,} from "@ant-design/icons";
  4. import type {ActionType, ProColumns, ProFormInstance,} from "@ant-design/pro-components";
  5. import {
  6. ModalForm,
  7. PageContainer,
  8. ProForm,
  9. ProFormDigit,
  10. ProFormRadio,
  11. ProFormSelect,
  12. ProFormText,
  13. ProFormTextArea,
  14. ProTable,
  15. } from "@ant-design/pro-components";
  16. import {Button, Modal, Space, Tag} from "antd";
  17. import {useRouter} from "next/navigation";
  18. import {faCheck, faDownload, faPenToSquare, faToggleOff, faToggleOn, faXmark,} from "@fortawesome/free-solid-svg-icons";
  19. import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
  20. import {useRef, useState} from "react";
  21. import globalMessage from "@/app/_modules/globalMessage";
  22. //查询类型详情
  23. const queryTypeAPI = "/api/system/dict/type";
  24. //查询所有类型列表
  25. const queryTypeListAPI = "/api/system/dict/type/optionselect";
  26. //查询表格数据API
  27. const queryAPI = "/api/system/dict/data/list";
  28. //新建数据API
  29. const newAPI = "/api/system/dict/data";
  30. //修改数据API
  31. const modifyAPI = "/api/system/dict/data";
  32. //查询详情数据API
  33. const queryDetailAPI = "/api/system/dict/data";
  34. //删除API
  35. const deleteAPI = "/api/system/dict/data";
  36. //导出API
  37. const exportAPI = "/api/system/dict/data/export";
  38. //导出文件前缀名
  39. const exportFilePrefix = "data";
  40. export default function DictData({ params }: { params: { dictid: string } }) {
  41. const { push } = useRouter();
  42. // 添加用于控制删除确认模态框的状态
  43. const [deleteModalVisible, setDeleteModalVisible] = useState(false);
  44. const [deleteDictCode, setDeleteDictCode] = useState<string | number | null>(null);
  45. const [defaultType, setDefaultType] = useState("");
  46. //获取对应的字典类型的值
  47. const getTypeData = async () => {
  48. const resp = await fetchApi(`${queryTypeAPI}/${params.dictid}`, push);
  49. if (resp != undefined) {
  50. if (searchTableFormRef.current) {
  51. searchTableFormRef.current.setFieldsValue({
  52. dictType: resp.data.dictType,
  53. });
  54. }
  55. setDefaultType(resp.data.dictType);
  56. return resp.data.dictType;
  57. }
  58. return "";
  59. };
  60. //查询字典类型列表
  61. const getTypeList = async () => {
  62. const dataArray: Array<any> = new Array<any>();
  63. const resp = await fetchApi(queryTypeListAPI, push);
  64. if (resp != undefined) {
  65. resp.data.forEach((item: any) => {
  66. const type = {
  67. label: item.dictName,
  68. value: item.dictType,
  69. };
  70. dataArray.push(type);
  71. });
  72. }
  73. return dataArray;
  74. };
  75. //表格列定义
  76. const columns: ProColumns[] = [
  77. {
  78. title: "字典名称",
  79. dataIndex: "dictType",
  80. valueType: "select",
  81. fieldProps: {
  82. allowClear: false,
  83. },
  84. request: getTypeList,
  85. hideInTable: true,
  86. order: 3,
  87. },
  88. {
  89. title: "数据编码",
  90. dataIndex: "dictCode",
  91. search: false,
  92. },
  93. {
  94. title: "数据标签",
  95. fieldProps: {
  96. placeholder: "请输入数据标签",
  97. },
  98. dataIndex: "dictLabel",
  99. order: 2,
  100. render: (_, record) => {
  101. const isTag = record.listClass === "";
  102. let tagColor = "default";
  103. if (record.listClass === "") {
  104. return _;
  105. } else {
  106. switch (record.listClass) {
  107. case "default":
  108. tagColor = "processing";
  109. break;
  110. case "primary":
  111. tagColor = "processing";
  112. break;
  113. case "success":
  114. tagColor = "success";
  115. break;
  116. case "info":
  117. tagColor = "default";
  118. break;
  119. case "warning":
  120. tagColor = "warning";
  121. break;
  122. case "danger":
  123. tagColor = "error";
  124. break;
  125. default:
  126. tagColor = "processing";
  127. break;
  128. }
  129. return (
  130. <Space>
  131. <Tag color={tagColor}>{_}</Tag>
  132. </Space>
  133. );
  134. }
  135. },
  136. },
  137. {
  138. title: "数据键值",
  139. dataIndex: "dictValue",
  140. search: false,
  141. },
  142. {
  143. title: "数据排序",
  144. dataIndex: "dictSort",
  145. sorter: true,
  146. search: false,
  147. },
  148. {
  149. title: "状态",
  150. fieldProps: {
  151. placeholder: "请选择数据状态",
  152. },
  153. dataIndex: "status",
  154. valueType: "select",
  155. render: (_, record) => {
  156. return (
  157. <Space>
  158. <Tag
  159. color={record.status === "0" ? "green" : "red"}
  160. icon={
  161. record.status == 0 ? (
  162. <FontAwesomeIcon icon={faCheck} />
  163. ) : (
  164. <FontAwesomeIcon icon={faXmark} />
  165. )
  166. }
  167. >
  168. {_}
  169. </Tag>
  170. </Space>
  171. );
  172. },
  173. valueEnum: {
  174. 0: {
  175. text: "正常",
  176. status: "0",
  177. },
  178. 1: {
  179. text: "停用",
  180. status: "1",
  181. },
  182. },
  183. order: 1,
  184. },
  185. {
  186. title: "备注",
  187. dataIndex: "remark",
  188. search: false,
  189. },
  190. {
  191. title: "创建时间",
  192. dataIndex: "createTime",
  193. valueType: "dateTime",
  194. search: false,
  195. },
  196. {
  197. title: "操作",
  198. key: "option",
  199. search: false,
  200. render: (_, record) => [
  201. <Button
  202. key="modifyBtn"
  203. type="link"
  204. icon={<FontAwesomeIcon icon={faPenToSquare} />}
  205. onClick={() => onClickShowRowModifyModal(record)}
  206. >
  207. 修改
  208. </Button>,
  209. <Button
  210. key="deleteBtn"
  211. type="link"
  212. danger
  213. icon={<DeleteOutlined />}
  214. onClick={() => onClickDeleteRow(record)}
  215. >
  216. 删除
  217. </Button>,
  218. ],
  219. },
  220. ];
  221. //0.查询表格数据
  222. const queryTableData = async (params: any, sorter: any, filter: any) => {
  223. const searchParams = {
  224. pageNum: params.current,
  225. ...params,
  226. };
  227. delete searchParams.current;
  228. const queryParams = new URLSearchParams(searchParams);
  229. //如果没有带上默认的字典类型,查询绑定上
  230. if (!("dictType" in searchParams)) {
  231. const defaultType = await getTypeData();
  232. queryParams.append("dictType", defaultType);
  233. }
  234. Object.keys(sorter).forEach((key) => {
  235. queryParams.append("orderByColumn", key);
  236. if (sorter[key] === "ascend") {
  237. queryParams.append("isAsc", "ascending");
  238. } else {
  239. queryParams.append("isAsc", "descending");
  240. }
  241. });
  242. const body = await fetchApi(`${queryAPI}?${queryParams}`, push);
  243. return body;
  244. };
  245. //1.新建
  246. //确定新建数据
  247. const executeAddData = async (values: any) => {
  248. const body = await fetchApi(newAPI, push, {
  249. method: "POST",
  250. headers: {
  251. "Content-Type": "application/json",
  252. },
  253. body: JSON.stringify(values),
  254. });
  255. if (body != undefined) {
  256. if (body.code == 200) {
  257. globalMessage.success(body.msg);
  258. if (actionTableRef.current) {
  259. actionTableRef.current.reload();
  260. }
  261. return true;
  262. }
  263. globalMessage.error(body.msg);
  264. return false;
  265. }
  266. return false;
  267. };
  268. //2.修改
  269. //是否展示修改对话框
  270. const [isShowModifyDataModal, setIsShowModifyDataModal] = useState(false);
  271. //展示修改对话框
  272. const onClickShowRowModifyModal = (record?: any) => {
  273. queryRowData(record);
  274. setIsShowModifyDataModal(true);
  275. };
  276. //修改数据表单引用
  277. const modifyFormRef = useRef<ProFormInstance>(null);
  278. //操作当前数据的附加数据
  279. const [operatRowData, setOperateRowData] = useState<{
  280. [key: string]: any;
  281. }>({});
  282. //查询并加载待修改数据的详细信息
  283. const queryRowData = async (record?: any) => {
  284. const dictCode =
  285. record !== undefined ? record.dictCode : selectedRow.dictCode;
  286. operatRowData["dictCode"] = dictCode;
  287. setOperateRowData(operatRowData);
  288. if (dictCode !== undefined) {
  289. const body = await fetchApi(`${queryDetailAPI}/${dictCode}`, push);
  290. if (body !== undefined) {
  291. if (body.code == 200) {
  292. modifyFormRef?.current?.setFieldsValue({
  293. //需要加载到修改表单中的数据
  294. dictType: body.data.dictType,
  295. dictLabel: body.data.dictLabel,
  296. dictValue: body.data.dictValue,
  297. dictSort: body.data.dictSort,
  298. status: body.data.status,
  299. listClass: body.data.listClass,
  300. cssClass: body.data.cssClass,
  301. remark: body.data.remark,
  302. });
  303. }
  304. }
  305. }
  306. };
  307. //确认修改数据
  308. const executeModifyData = async (values: any) => {
  309. values["dictCode"] = operatRowData["dictCode"];
  310. const body = await fetchApi(modifyAPI, push, {
  311. method: "PUT",
  312. headers: {
  313. "Content-Type": "application/json",
  314. },
  315. body: JSON.stringify(values),
  316. });
  317. if (body !== undefined) {
  318. if (body.code == 200) {
  319. globalMessage.success(body.msg);
  320. //刷新列表
  321. if (actionTableRef.current) {
  322. actionTableRef.current.reload();
  323. }
  324. setIsShowModifyDataModal(false);
  325. return true;
  326. }
  327. globalMessage.error(body.msg);
  328. return false;
  329. }
  330. };
  331. //3.删除
  332. //点击删除按钮,展示删除确认框
  333. const onClickDeleteRow = (record?: any) => {
  334. const dictCode = record !== undefined ? record.dictCode : selectedRowKeys.join(",");
  335. setDeleteDictCode(dictCode);
  336. setDeleteModalVisible(true);
  337. };
  338. //确定删除选中的数据
  339. const executeDeleteRow = async () => {
  340. if (deleteDictCode === null) return;
  341. const body = await fetchApi(`${deleteAPI}/${deleteDictCode}`, push, {
  342. method: "DELETE",
  343. });
  344. if (body !== undefined) {
  345. if (body.code == 200) {
  346. globalMessage.success("删除成功");
  347. //修改按钮变回不可点击
  348. setRowCanModify(false);
  349. //删除按钮变回不可点击
  350. setRowCanDelete(false);
  351. //选中行数据重置为空
  352. setSelectedRowKeys([]);
  353. //刷新列表
  354. if (actionTableRef.current) {
  355. actionTableRef.current.reload();
  356. }
  357. } else {
  358. globalMessage.error(body.msg);
  359. }
  360. }
  361. setDeleteModalVisible(false);
  362. setDeleteDictCode(null);
  363. };
  364. //4.导出
  365. //导出表格数据
  366. const exportTable = async () => {
  367. if (searchTableFormRef.current) {
  368. const formData = new FormData();
  369. const data = {
  370. pageNum: page,
  371. pageSize: pageSize,
  372. ...searchTableFormRef.current.getFieldsValue(),
  373. };
  374. Object.keys(data).forEach((key) => {
  375. if (data[key] !== undefined) {
  376. formData.append(key, data[key]);
  377. }
  378. });
  379. await fetchFile(
  380. exportAPI,
  381. push,
  382. {
  383. method: "POST",
  384. body: formData,
  385. },
  386. `${exportFilePrefix}_${new Date().getTime()}.xlsx`
  387. );
  388. }
  389. };
  390. //5.选择行
  391. //选中行操作
  392. const [selectedRowKeys, setSelectedRowKeys] = useState<React.Key[]>([]);
  393. const [selectedRow, setSelectedRow] = useState(undefined as any);
  394. //修改按钮是否可用,选中行时才可用
  395. const [rowCanModify, setRowCanModify] = useState(false);
  396. //删除按钮是否可用,选中行时才可用
  397. const [rowCanDelete, setRowCanDelete] = useState(false);
  398. //ProTable rowSelection
  399. const rowSelection = {
  400. onChange: (newSelectedRowKeys: React.Key[], selectedRows: any[]) => {
  401. setSelectedRowKeys(newSelectedRowKeys);
  402. setRowCanDelete(newSelectedRowKeys && newSelectedRowKeys.length > 0);
  403. if (newSelectedRowKeys && newSelectedRowKeys.length == 1) {
  404. setSelectedRow(selectedRows[0]);
  405. setRowCanModify(true);
  406. } else {
  407. setRowCanModify(false);
  408. setSelectedRow(undefined);
  409. }
  410. },
  411. //复选框的额外禁用判断
  412. // getCheckboxProps: (record) => ({
  413. // disabled: record.userId == 1,
  414. // }),
  415. };
  416. //搜索栏显示状态
  417. const [showSearch, setShowSearch] = useState(true);
  418. //action对象引用
  419. const actionTableRef = useRef<ActionType>(null);
  420. //搜索表单对象引用
  421. const searchTableFormRef = useRef<ProFormInstance>(null!);
  422. //当前页数和每页条数
  423. const [page, setPage] = useState(1);
  424. const defaultPageSize = 10;
  425. const [pageSize, setPageSize] = useState(defaultPageSize);
  426. const pageChange = (page: number, pageSize: number) => {
  427. setPage(page);
  428. setPageSize(pageSize);
  429. };
  430. return (
  431. <PageContainer
  432. header={{
  433. title: "字典数据",
  434. onBack(e) {
  435. push("/system/dict");
  436. },
  437. }}
  438. >
  439. <ProTable
  440. formRef={searchTableFormRef}
  441. rowKey="dictCode"
  442. rowSelection={{
  443. selectedRowKeys,
  444. ...rowSelection,
  445. }}
  446. columns={columns}
  447. request={async (params: any, sorter: any, filter: any) => {
  448. // 表单搜索项会从 params 传入,传递给后端接口。
  449. const data = await queryTableData(params, sorter, filter);
  450. if (data !== undefined) {
  451. return Promise.resolve({
  452. data: data.rows,
  453. success: true,
  454. total: data.total,
  455. });
  456. }
  457. return Promise.resolve({
  458. data: [],
  459. success: true,
  460. });
  461. }}
  462. pagination={{
  463. defaultPageSize: defaultPageSize,
  464. showQuickJumper: true,
  465. showSizeChanger: true,
  466. onChange: pageChange,
  467. }}
  468. search={
  469. showSearch
  470. ? {
  471. defaultCollapsed: false,
  472. searchText: "搜索",
  473. }
  474. : false
  475. }
  476. dateFormatter="string"
  477. actionRef={actionTableRef}
  478. toolbar={{
  479. actions: [
  480. <ModalForm
  481. key="addmodal"
  482. title="添加字典数据"
  483. trigger={
  484. <Button icon={<PlusOutlined />} type="primary">
  485. 新建
  486. </Button>
  487. }
  488. autoFocusFirstInput
  489. modalProps={{
  490. destroyOnHidden: true,
  491. }}
  492. submitTimeout={2000}
  493. onFinish={executeAddData}
  494. >
  495. <ProForm.Group>
  496. <ProFormText
  497. width="md"
  498. name="dictType"
  499. label="字典类型"
  500. initialValue={defaultType}
  501. disabled
  502. />
  503. </ProForm.Group>
  504. <ProForm.Group>
  505. <ProFormText
  506. width="md"
  507. name="dictLabel"
  508. label="数据标签"
  509. rules={[{ required: true, message: "请输入数据标签" }]}
  510. />
  511. <ProFormText
  512. width="md"
  513. name="dictValue"
  514. label="数据键值"
  515. rules={[{ required: true, message: "请输入数据键值" }]}
  516. />
  517. </ProForm.Group>
  518. <ProForm.Group>
  519. <ProFormDigit
  520. fieldProps={{ precision: 0 }}
  521. width="md"
  522. name="dictSort"
  523. initialValue="0"
  524. label="数据排序"
  525. placeholder="请输入数据排序"
  526. rules={[{ required: true, message: "请输入数据排序" }]}
  527. />
  528. <ProFormRadio.Group
  529. width="md"
  530. name="status"
  531. label="状态"
  532. initialValue="0"
  533. options={[
  534. {
  535. label: "正常",
  536. value: "0",
  537. },
  538. {
  539. label: "停用",
  540. value: "1",
  541. },
  542. ]}
  543. />
  544. </ProForm.Group>
  545. <ProForm.Group>
  546. <ProFormSelect
  547. width="md"
  548. name="listClass"
  549. label="回显样式"
  550. valueEnum={{
  551. default: {
  552. text: "默认(default)",
  553. status: "default",
  554. },
  555. primary: {
  556. text: "主要(primary)",
  557. status: "primary",
  558. },
  559. success: {
  560. text: "成功(成功)",
  561. status: "success",
  562. },
  563. info: {
  564. text: "信息(info)",
  565. status: "info",
  566. },
  567. warning: {
  568. text: "警告(warning)",
  569. status: "warning",
  570. },
  571. danger: {
  572. text: "危险(danger)",
  573. status: "danger",
  574. },
  575. }}
  576. />
  577. <ProFormText width="md" name="cssClass" label="样式属性" />
  578. </ProForm.Group>
  579. <ProFormTextArea
  580. name="remark"
  581. width={688}
  582. label="备注"
  583. placeholder="请输入内容"
  584. />
  585. </ModalForm>,
  586. <ModalForm
  587. key="modifymodal"
  588. title="修改岗位"
  589. formRef={modifyFormRef}
  590. trigger={
  591. <Button
  592. icon={<FontAwesomeIcon icon={faPenToSquare} />}
  593. disabled={!rowCanModify}
  594. onClick={() => onClickShowRowModifyModal()}
  595. >
  596. 修改
  597. </Button>
  598. }
  599. open={isShowModifyDataModal}
  600. autoFocusFirstInput
  601. modalProps={{
  602. destroyOnHidden: true,
  603. onCancel: () => {
  604. setIsShowModifyDataModal(false);
  605. },
  606. }}
  607. submitTimeout={2000}
  608. onFinish={executeModifyData}
  609. >
  610. <ProForm.Group>
  611. <ProFormText
  612. width="md"
  613. name="dictType"
  614. label="字典类型"
  615. disabled
  616. />
  617. </ProForm.Group>
  618. <ProForm.Group>
  619. <ProFormText
  620. width="md"
  621. name="dictLabel"
  622. label="字典标签"
  623. rules={[{ required: true, message: "请输入字典标签" }]}
  624. />
  625. <ProFormText
  626. width="md"
  627. name="dictValue"
  628. label="字典键值"
  629. rules={[{ required: true, message: "请输入字典键值" }]}
  630. />
  631. </ProForm.Group>
  632. <ProForm.Group>
  633. <ProFormDigit
  634. fieldProps={{ precision: 0 }}
  635. width="md"
  636. name="dictSort"
  637. initialValue="0"
  638. label="显示排序"
  639. placeholder="请输入显示排序"
  640. rules={[{ required: true, message: "请输入显示排序" }]}
  641. />
  642. <ProFormRadio.Group
  643. width="md"
  644. name="status"
  645. label="状态"
  646. initialValue="0"
  647. options={[
  648. {
  649. label: "正常",
  650. value: "0",
  651. },
  652. {
  653. label: "停用",
  654. value: "1",
  655. },
  656. ]}
  657. />
  658. </ProForm.Group>
  659. <ProForm.Group>
  660. <ProFormSelect
  661. width="md"
  662. name="listClass"
  663. label="回显样式"
  664. valueEnum={{
  665. default: {
  666. text: "默认(default)",
  667. status: "default",
  668. },
  669. primary: {
  670. text: "主要(primary)",
  671. status: "primary",
  672. },
  673. success: {
  674. text: "成功(成功)",
  675. status: "success",
  676. },
  677. info: {
  678. text: "信息(info)",
  679. status: "info",
  680. },
  681. warning: {
  682. text: "警告(warning)",
  683. status: "warning",
  684. },
  685. danger: {
  686. text: "危险(danger)",
  687. status: "danger",
  688. },
  689. }}
  690. />
  691. <ProFormText width="md" name="cssClass" label="样式属性" />
  692. </ProForm.Group>
  693. <ProFormTextArea
  694. name="remark"
  695. width={688}
  696. label="备注"
  697. placeholder="请输入内容"
  698. />
  699. </ModalForm>,
  700. <Button
  701. key="danger"
  702. danger
  703. icon={<DeleteOutlined />}
  704. disabled={!rowCanDelete}
  705. onClick={() => onClickDeleteRow()}
  706. >
  707. 删除
  708. </Button>,
  709. <Button
  710. key="export"
  711. type="primary"
  712. icon={<FontAwesomeIcon icon={faDownload} />}
  713. onClick={exportTable}
  714. >
  715. 导出
  716. </Button>,
  717. ],
  718. settings: [
  719. {
  720. key: "switch",
  721. icon: showSearch ? (
  722. <FontAwesomeIcon icon={faToggleOn} />
  723. ) : (
  724. <FontAwesomeIcon icon={faToggleOff} />
  725. ),
  726. tooltip: showSearch ? "隐藏搜索栏" : "显示搜索栏",
  727. onClick: (key: string | undefined) => {
  728. setShowSearch(!showSearch);
  729. },
  730. },
  731. {
  732. key: "refresh",
  733. tooltip: "刷新",
  734. icon: <ReloadOutlined />,
  735. onClick: (key: string | undefined) => {
  736. if (actionTableRef.current) {
  737. actionTableRef.current.reload();
  738. }
  739. },
  740. },
  741. ],
  742. }}
  743. />
  744. {/* 删除确认模态框 */}
  745. <Modal
  746. title={
  747. <div style={{ display: 'flex', alignItems: 'center' }}>
  748. <ExclamationCircleFilled style={{ color: '#faad14', marginRight: 8 }} />
  749. <span>系统提示</span>
  750. </div>
  751. }
  752. open={deleteModalVisible}
  753. onOk={executeDeleteRow}
  754. onCancel={() => {
  755. setDeleteModalVisible(false);
  756. setDeleteDictCode(null);
  757. }}
  758. okText="确认"
  759. cancelText="取消"
  760. >
  761. <p>{`确定删除字典编码为“${deleteDictCode}”的数据项?`}</p>
  762. </Modal>
  763. </PageContainer>
  764. );
  765. }